/**
 * 
 */
package com.ruyipu.forum.base;

import android.graphics.drawable.Drawable;
import android.view.View.OnClickListener;

/**
 * @author donald
 *
 */
public class MenuItem {
	private Drawable icon;
	private String title = "";
	private OnClickListener listener;
	
	public MenuItem() {}
	
	public MenuItem(String title, Drawable icon, OnClickListener listener) {
		this();
		this.icon = icon;
		this.title = title;
		this.listener = listener;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getTitle() {
		return title;
	}
	
	public void setIcon(Drawable icon) {
		this.icon = icon;
	}
	
	public Drawable getIcon() {
		return icon;
	}
	
	public void setListener(OnClickListener listener) {
		this.listener = listener;
	}
	
	public OnClickListener getListener() {
		return listener;
	}
}
